package action;

import java.util.Date;
import java.util.Map;

import model.User;

import com.opensymphony.xwork2.ActionContext;

import action.base.BaseAction;

public class ProjectInfoAction extends BaseAction {
	private String proInName; //创业项目名称
	private String proInProName ; //项目产品名称
	private int proInledge ;  //产品类型
	private int proInMain ;  //主技术领域
	private double proInRegMoney ;  //公司拟注册资金
	private double proInNeedMoney ;  //项目投入需求
	private double proInTeamMoney ;  //团队资金投入
	public String getProInName() {
		return proInName;
	}
	public void setProInName(String proInName) {
		this.proInName = proInName;
	}
	public String getProInProName() {
		return proInProName;
	}
	public void setProInProName(String proInProName) {
		this.proInProName = proInProName;
	}
	public int getProInledge() {
		return proInledge;
	}
	public void setProInledge(int proInledge) {
		this.proInledge = proInledge;
	}
	public int getProInMain() {
		return proInMain;
	}
	public void setProInMain(int proInMain) {
		this.proInMain = proInMain;
	}
	public double getProInRegMoney() {
		return proInRegMoney;
	}
	public void setProInRegMoney(double proInRegMoney) {
		this.proInRegMoney = proInRegMoney;
	}
	public double getProInNeedMoney() {
		return proInNeedMoney;
	}
	public void setProInNeedMoney(double proInNeedMoney) {
		this.proInNeedMoney = proInNeedMoney;
	}
	public double getProInTeamMoney() {
		return proInTeamMoney;
	}
	public void setProInTeamMoney(double proInTeamMoney) {
		this.proInTeamMoney = proInTeamMoney;
	}

	public String execute() throws Exception {
		
		Date proInTime = new Date();
		int proInState = -1;
		mgp.addOrUpdateProjectInfoManager(proInName, proInProName, proInledge, proInMain, 
				proInRegMoney, proInNeedMoney, proInTeamMoney, proInTime, proInState);
		return "success";

	}
}
